<?php
	$css_list[0]['url'] = './tpl/css/index.css';
	$js_list[0] = './public/js/jquery.slides.js';
?>
<!--{template inc/header}-->
<!--{advlayout name='首页轮播广告位' tmpl='adv/indexlflashadv'}-->
<?php
$best_albums = array_chunk(FS('Album')->getBestAlbums(10),5);
?>
<div class="wrapper2 best_album mt15">
	<div class="bal"><a href="javascript:;" class="disabled">上一页</a></div>
	<div class="bac">
		<h2>热门杂志社</h2>
		<a class="more" href="{u album/index}">更多杂志社>></a>
		<div class="bac_list">
			<!--{loop $best_albums $albums}-->
			<ul>
				<!--{loop $albums $album}-->
				<li>
					<a class="img" href="{$album['url']}"><img class="LOAD_SCALE_IMG" scaleSrc="{getimg $album['img']['img'] 200 999}" scaleType="3" scaleWidth="170" scaleHeight="237"/><span>{$album['title']}</span></a>
					<a class="desc" href="{$album['url']}">{cutstr $album['content'] 52}</a>
				</li>
				<!--{/loop}-->
			</ul>
			<!--{/loop}-->
		</div>
	</div>
	<div class="bar"><a href="javascript:;"{if count($best_albums) < 2} class="disabled"{/if}>下一页</a></div>
</div>
<!--{if count($best_albums) > 1}-->
<script type="text/javascript">
	jQuery(function($){
		$(".bac_list").carouFredSel({
			items:1,
			circular:false,
			infinite:false,
			auto:false,
			prev:{
				button:".bal a",
				key:"left"
			},
			next:{
				button:".bar a",
				key:"right"
			}
		});
	});
</script>
<!--{/if}-->
<!--{dynamic getIndexCateShare}-->
<!--{template inc/footer}-->